package com.service.impl;

import com.mapper.UserRoleMapper;
import com.pojo.RoleUser;
import com.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zhengjz
 * @version 1.0
 * @className UserRoleServiceimpl
 * @date 2021/3/5 14:33
 */
@Service
public class UserRoleServiceimpl implements UserRoleService {
    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public RoleUser findRole(Integer userId) {
        return userRoleMapper.findRole(userId);
    }
}
